﻿using Store.Manager.ERP.Common.Models;
using Store.Manager.ERP.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Store.Manager.ERP.Domain.Repositories
{
    public interface IOrganizationRepository
    {
        Task<CommonResponse<Organization>> AddAsync(Organization organization);
        Task<bool> UpdateAsync(Organization organization);
        Task<bool> DeleteAsync(string code);
        Task<Organization> GetByIdAsync(string code);
        Task<List<Organization>> GetAllAsync();
        Task<bool> AddRangeAsync(List<Organization> organizations);
    }
}
